package com.gzsxy.sso.core.service;

import com.gzsxy.sso.common.dto.response.MenuRsp;
import com.gzsxy.sso.core.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zxl
 * @since 2021-11-10
 */
public interface PermissionService extends IService<Permission> {

    /**
     * @description: 查询所有的权限
     * @param
     * @return Permission
     */
    List<Permission> findAllPermission();

    /**
     * @description: 根据角色添加权限
     * @param
     * @return
     */
    void addPermissionByRole(String roleId, String menuIds);

    /**
     * @description: 删除角色下的功能权限
     * @param
     * @return
     */
    List<MenuRsp> deletefunctionByRoles(String roleId, String menuId);
}
